package com.task.core.dto.response;

import com.alibaba.fastjson2.JSON;
import com.task.core.domain.DataOperationInfo;

import lombok.Data;

/**
 * @author 迪迦.
 * @date 2024/11/13 17:06
 */
@Data
public class DataOperationResponseDTO {

  private Object dataInfo;
  private String dataSessionCode;
  private String dataId;

  public DataOperationResponseDTO() {
  }

  public DataOperationResponseDTO(String dataInfo, String dataSessionCode, String dataId) {
    this.dataInfo = JSON.parse(dataInfo);
    this.dataSessionCode = dataSessionCode;
    this.dataId = dataId;
  }
}
